<include file="Public:header" />
<div class="container main"> <include file="Public:left" />

  <div class="w790">
    <div class="h"><a href="{:U('add')}" class="btn btn-info"><i class="glyphicon glyphicon-plus"></i>新增栏目</a>
      <form action="{:U('index')}" method="get" class="fr form-inline">
      
      
      
        <input type="hidden" name="pagesize" value="{$pagesize}" />
        <input type="text" name="keywords" placeholder="输入搜索关键词" class="form-control" value="{$keywords}" />
        <button type="submit" class="btn btn-default">搜索</button>
      </form></div>
     <div class="table_"><table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
    <td height="21" align="center" class="hidden-xs">ID</td>
    <td align="center">名称</td>
    <td align="center" class="hidden-xs">访问名</td>
    <td align="center" class="hidden-xs">风格</td>
    <td align="center" class="hidden-xs">状态</td>
    <td align="center">排序</td>
    <td align="center">操作</td>
  </tr>
</thead>
<volist name="list" id="vo">
  <tr class="data_list">
    <td align="center" class="hidden-xs"><input type="checkbox" name="id" id="id" class="sall" value="{$vo.id}" />{$vo.id}</td>
    <td style="text-indent:{$vo['cl']*10}px"><gt name="vo['cl']" value="0">|-</gt><a href="__APP__/{$siteid}/{$vo.name}" target="_blank">{$vo.title}</a></td>
    <td class="hidden-xs">{$vo.name}({$vo.en_title})</td>
    
    
    <td align="left" class="hidden-xs"><p><strong>列表：</strong><!--<a href="{:U('Pages/edit', array('id' => $vo['page_list_header_id']))}" target="_blank">{:getTemplateName($vo['page_list_header_id'])}</a> | --><a href="{:U('Pages/edit', array('id' => $vo['page_list_id']))}" target="_blank">{:getTemplateName($vo['page_list_id'])}</a><!-- | <a href="{:U('Pages/edit', array('id' => $vo['page_list_footer_id']))}" target="_blank">{:getTemplateName($vo['page_list_footer_id'])}</a>-->
 </p>
      <p><strong>详情：</strong><!--<a href="{:U('Pages/edit', array('id' => $vo['page_view_header_id']))}" target="_blank">{:getTemplateName($vo['page_list_view_id'])}</a> | --><a href="{:U('Pages/edit', array('id' => $vo['page_view_id']))}" target="_blank">{:getTemplateName($vo['page_view_id'])}</a><!-- | <a href="{:U('Pages/edit', array('id' => $vo['page_view_footer_id']))}" target="_blank">{:getTemplateName($vo['page_view_footer_id'])}</a>--></p></td>
    
    
    <td align="center" class="hidden-xs"><eq name="vo['status']" value="1"><span class="status1 status_btn" field="status,{$vo.id}"></span><else/><span class="status0 status_btn" field="status,{$vo.id}"></span></eq></td>
    
    
    <td align="center"><input name="sort" width="30" type="text" value="{$vo.sort}" class="hidden-xs" size="4" /><a href="javascript:void(0);" onclick="update_sortClick('id','up',this,'sort','{:U('dosort')}');" class="fl"><i class="glyphicon glyphicon-arrow-up"></i></a><a href="javascript:void(0);" onclick="update_sortClick('id','',this,'sort','{:U('dosort')}');" class="fr"><i class="glyphicon glyphicon-arrow-down"></i></a></td>
    <td align="center">
    
    <notempty name="relateSiteList">
    <volist name="relateSiteList" id="s">
    <a href="{:U('edit',array('relate_id'=>$vo['id'],'site_id' => $s['id']))}">{$s.title}</a> | 
    </volist>
    </notempty>
    
    
    
    <a href="{:U('add',array('id'=>$vo['id']))}" class="btn-xs btn btn-info">添加子级</a> <a class="btn-xs btn btn-info hidden-xs" href="{:U('News/add',array('category_id'=>$vo['id']))}" title="添加文章">添加文章</a> <a href="{:U('edit',array('id'=>$vo['id']))}" title="编辑" class="btn-xs btn btn-info">编辑</a> <a href="{:U('delete',array('id'=>$vo['id']))}" onclick="return confirm('您确定要删除这条记录吗？');" title="删除" class="btn-xs btn btn-info">删除</a></td>
  </tr>


       <volist name="vo['sub']" id="svo">
       	<tr class="data_list">
          <td align="center" class="hidden-xs"><label class="checkbox-inline"><input type="checkbox" name="id" id="id" class="sall" value="{$svo.id}" />{$svo.id}</label></td>
          <td style="text-indent:{$svo['deep']*20}px"><gt name="svo['deep']" value="0">|-</gt><a href="__APP__/{$siteid}/{$svo.name}" target="_blank">{$svo.title}</a></td>
          <td class="hidden-xs">{$svo.name}({$svo.en_title})</td>
          
           <td class="hidden-xs"><p><strong>列表：</strong><!--<a href="{:U('Pages/edit', array('id' => $svo['page_list_header_id']))}" target="_blank">{:getTemplateName($vo['page_list_header_id'])}</a> | --><a href="{:U('Pages/edit', array('id' => $svo['page_list_id']))}" target="_blank">{:getTemplateName($vo['page_list_id'])}</a><!-- | <a href="{:U('Pages/edit', array('id' => $svo['page_list_footer_id']))}" target="_blank">{:getTemplateName($vo['page_list_footer_id'])}</a>-->
 </p>
      <p><strong>详情：</strong><!--<a href="{:U('Pages/edit', array('id' => $svo['page_view_header_id']))}" target="_blank">{:getTemplateName($vo['page_list_view_id'])}</a> | --><a href="{:U('Pages/edit', array('id' => $svo['page_view_id']))}" target="_blank">{:getTemplateName($vo['page_view_id'])}</a><!-- | <a href="{:U('Pages/edit', array('id' => $svo['page_view_footer_id']))}" target="_blank">{:getTemplateName($vo['page_view_footer_id'])}</a>--></p></td>
          
    <td align="center" class="hidden-xs"><eq name="svo['status']" value="1"><span class="status1 status_btn" field="status,{$svo.id}"></span><else/><span class="status0 status_btn" field="status,{$svo.id}"></span></eq></td>
    
          <td align="center"><input class="hidden-xs" name="sort" width="30" type="text" value="{$svo.sort}" size="4" /><a href="javascript:void(0);" onclick="update_sortClick('id','up',this,'sort','{:U('dosort')}');" class="fl"><i class="glyphicon glyphicon-arrow-up"></i></a><a href="javascript:void(0);" onclick="update_sortClick('id','',this,'sort','{:U('dosort')}');" class="fr"><i class="glyphicon glyphicon-arrow-down"></i></a></td>
          <td align="center">
          
          <notempty name="relateSiteList">
    <volist name="relateSiteList" id="s">
    <a href="{:U('edit',array('relate_id'=>$svo['id'],'site_id' => $s['id']))}">{$s.title}</a> | 
    </volist>
    </notempty>
          
          <a href="{:U('add',array('id'=>$svo['id']))}" class="btn-xs btn btn-info">添加子级</a> <a href="{:U('News/add',array('category_id'=>$svo['id']))}" title="添加文章" class="hidden-xs btn-xs btn btn-info">添加文章</a> <a href="{:U('edit',array('id'=>$svo['id']))}" class="btn-xs btn btn-info">编辑</a> <a href="{:U('delete',array('id'=>$svo['id']))}" class="btn-xs btn btn-info" onclick="return confirm('您确定要删除这条记录吗？');">删除</a></td>
        </tr>
       </volist>
</volist>
  
</table></div>
<div class="pages">
        <div class="controlList fl"><a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();"><i class="glyphicon glyphicon-check"></i> 全选/反选</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();"><i class="glyphicon glyphicon-unchecked"></i> 全不选</a> <a class="btn btn-danger btn-sm" href="javascript:void(0);" onclick="delall();"><i class="glyphicon glyphicon-trash"></i> 删除选中</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="update_sort('id','sort','','{:U('dosort')}');"><i class="glyphicon glyphicon-refresh"></i> 更新排序</a> 
        
       
        
    </div>
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">每页10条
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">每页20条
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">每页30条
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">每页50条
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">每页100条
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">每页500条
            </option>
          </select>
          </label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
  </div>
  <div class="clear"></div>
</div>
</body></html>